<template>
  <div>
    <!-- 轮播区域 -->
    <van-swipe :autoplay="3000" indicator-color="orange">
      <van-swipe-item v-for="item in images" :key="item.goodsId">
        <!-- <router-link :to="{name:'detail',params:{id:item.goodsId}}"> -->
          <img v-lazy="item.image" width="100%" height="160" @click="showGoods(item.goodsId)">
        <!-- </router-link> -->
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>


export default {
  props:["images"],
  methods:{
    showGoods(id){
        // console.log(this)
        this.$parent.$parent.getDetail(id)
    }
  }
};
</script>

<style lang="scss" scoped>
</style>